<template>
	<view class="shop">
		<view class="shop-item" v-for="(i,j) in dataList" :key="j">
			<image :src="i.bigUrl" mode="" class="img"></image>
			<scroll-view scroll-x="true" class="scroll">
				<CarItem wrap="no-wrap" :lists="i.data"></CarItem>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	import CarItem from '@/components/common/CarItem.vue';
	export default {
		props: {
			dataList: {
				type: Array,
				default: []
			},
		},
		components: {
			CarItem
		},
	}
</script>

<style lang="scss" scoped>
	.shop {
		.img {
			width: 100%;
		}

		.scroll {
			white-space: nowrap;
		}
	}
</style>
